﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAOMall;
using DTOMall;
using System.Data;

namespace BLLMall
{
    public class UsersBLL
    {
        UsersDTO uControl = new UsersDTO();
        public bool insert(Users u)
        {
            if (uControl.insert(u))
            {
                return true;
            }
            return false;
        }
        public bool Update(Users u)
        {
            if (uControl.update(b))
            {
                return true;
            }
            return false;
        }
        public bool Delete(int id)
        {
            if (uControl.delete(id))
            {
                return true;
            }
            return false;
        }
        public DataTable getAll()
        {
            return uControl.getAll();
        }
        public Users getByID(int id)
        {
            return (Users)uControl.getByID(id);
        }
    }
}
